# Maintainer: Felix Yan <felixonmars@archlinux.org>

pkgname=qtmpris
pkgver=1.0.6
pkgrel=1
pkgdesc="Qt and QML MPRIS interface and adaptor"
arch=('loong64' 'x86_64')
url="https://git.sailfishos.org/mer-core/qtmpris"
license=('LGPL')
depends=('qt5-declarative')
makedepends=('qt5-tools')
source=("https://git.sailfishos.org/mer-core/qtmpris/-/archive/$pkgver/qtmpris-$pkgver.tar.bz2")
sha512sums=('07ceb08c95fbe1f04c826647da4deaec20e3b0518320cc949d36973070fe7d11987a1ae2a0e0ca66481f6d94b6df9795842c41a48cea67f83ba3f8c0c64d5178')

build() {
  cd qtmpris-$pkgver
  qmake-qt5
  make
}

package() {
  cd qtmpris-$pkgver
  make INSTALL_ROOT="$pkgdir" install
}
